package com.qf.ability.search.application;

import com.qf.ability.search.service.IGoodsSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * description:
 * author: Ken
 * 公众号：Java架构栈
 */
@Component
public class SearchRunning implements CommandLineRunner {

    @Autowired
    private IGoodsSearch goodsSearch;


    @Override
    public void run(String... args) throws Exception {
        goodsSearch.createIndex();
    }
}
